<?php
/**
 * Created by PhpStorm.
 * User: chenx
 * Date: 18-3-13
 * Time: 下午6:31
 */

namespace common\models;


use yii\db\ActiveRecord;

class MoneyChange extends ActiveRecord
{
    public static function tableName()
    {
        return 'money_change';
    }

    public function rules()
    {
        return [
          [['remark'],'string'],
          [['shop_id','type','create_time'],'integer'],
          [['money','before_money','after_money',],'double'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'id	'=>'id',
            'money'=>'金额',
            'after_money'=>'变动后金额',
            'before_money'=>'变动前金额',
            'shop_id'=>'店铺id',
            'remark'=>'备注',
            'type'=>'0 入账 1 出账',
            'create_time'=>'创建时间',
        ];
    }
}